//
//  UPOderCategoryModel.m
//  LoveFreshBee
//
//  Created by 王现涛 on 16/6/12.
//  Copyright © 2016年 王现涛. All rights reserved.
//

#import "UPOrderCategoryModel.h"

@implementation UPOrderCategoryModel
- (instancetype)initWithDict:(NSDictionary *)dict
{
    self = [super init];
    if (self) {
        self.name=dict[@"name"];
        self.iid=[dict[@"id"] intValue];
        self.flag=dict[@"flage"];
        self.sort=[dict[@"sort"] intValue];
    }
    return self;
}
+(instancetype)categoryWithDict:(NSDictionary *)dict{
    return [[self alloc ]initWithDict:dict];
}
@end
